package com.jeesite.modules.cs.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * cs_callbackEntity
 * @author 李寒冰
 * @version 2025-10-19
 */
@Table(name="cs_callback", alias="a", label="cs_callback信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="task_id", attrName="taskId", label="任务ID"),
		@Column(name="title", attrName="title", label="任务标题", queryType=QueryType.LIKE),
		@Column(name="price", attrName="price", label="用户收益", isUpdateForce=true),
		@Column(name="income", attrName="income", label="渠道收益", isUpdateForce=true),
		@Column(name="channel_user_id", attrName="channelUserId", label="渠道用户ID"),
	}, orderBy="a.id DESC"
)
public class CsCallback extends DataEntity<CsCallback> {
	
	private static final long serialVersionUID = 1L;
	private String taskId;		// 任务ID
	private String title;		// 任务标题
	private Double price;		// 用户收益
	private Double income;		// 渠道收益
	private String channelUserId;		// 渠道用户ID

	public CsCallback() {
		this(null);
	}
	
	public CsCallback(String id){
		super(id);
	}
	
	@Size(min=0, max=50, message="任务ID长度不能超过 50 个字符")
	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	
	@Size(min=0, max=255, message="任务标题长度不能超过 255 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	public Double getIncome() {
		return income;
	}

	public void setIncome(Double income) {
		this.income = income;
	}
	
	@Size(min=0, max=50, message="渠道用户ID长度不能超过 50 个字符")
	public String getChannelUserId() {
		return channelUserId;
	}

	public void setChannelUserId(String channelUserId) {
		this.channelUserId = channelUserId;
	}
	
}